import axios from 'axios'
import { Toast } from 'vant'

const service=axios.create({
  baseURL:'http://itfly.vip',
  timeout:3000,
})

//响应试拦截
service.interceptors.response.use(
  (config)=>{
    return config
  },
  (err)=>{
    Toast.fail('网络请求失败')
    Promise.reject(err)
  }
)
export default service